package com.person.yan.a03_takeout1.dagger.module;

import android.app.Activity;

import com.person.yan.a03_takeout1.contract.ListContract;
import com.person.yan.a03_takeout1.presenter.ListPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by ywy on 2017-10-12.
 */
@Module
public class MainActivityMoudle {

    private final ListContract.View mView;
    private final Activity mActivity;

    public MainActivityMoudle(ListContract.View mView, Activity mActivity) {
        this.mView = mView;
        this.mActivity = mActivity;
    }

    @Provides
    public ListPresenter listPresenterProvider(){
        return new ListPresenter(mView, mActivity);
    }
}
